package com.demo.mapper;

import com.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
	//���������ѯʱ����ʹ��@Paramָ��
	User queryUserLogin(@Param("username")String username,@Param("password")String password);
	User queryUserLoginByEmail(String email);													//ͨ������+�����¼
	//ע��
	public void insertUserRegister(@Param("email")String email,@Param("username")String username,@Param("password")String password);		
	
	List<User> queryUserInfo();										//��ѯ�û���Ϣ
	void delUserInfo(String delID);									//ɾ���û���Ϣ
	//����-�޸��û�Ȩ��
	void updateUserPower(@Param("uid")String uid,@Param("ustate")int ustate,@Param("utype")int utype);								
	
}
